package org.yzl.designPatterns.command.impl;

import org.yzl.designPatterns.command.ICommand;
import org.yzl.designPatterns.command.Receiver;

public class Commandimpl implements ICommand {
    Receiver receiver;

    public Commandimpl(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void exe() {
        receiver.action();
    }
}
